From: Florian Müllner Date: Sat, 14 Feb 2015 05:01:20 +0000 (+0100) Subject: notificationDaemon: Do the same for GTK+ notifications X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1733 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b00f122fcf21d63523bdc1293aa62177ff5a8c5f;p=gnome-shell.git notificationDaemon: Do the same for GTK+ notifications There is not good reason why activating a GTK+ notification should behave fundamentally different from fd.o notifications - we don't raise the app because we expect it to perform an appropriate action, but that does not include closing overview or calendar for us ... https://bugzilla.gnome.org/show_bug.cgi?id=744817 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index feb91854d..aedda638f 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -716,11 +716,17 @@ const GtkNotificationDaemonAppSource = new Lang.Class({ activateAction: function(actionId, target) { let app = this._createApp(); app.ActivateActionRemote(actionId, target ? [target] : [], getPlatformData()); + + Main.overview.hide(); + Main.panel.closeCalendar(); }, open: function() { let app = this._createApp(); app.ActivateRemote(getPlatformData()); + + Main.overview.hide(); + Main.panel.closeCalendar(); }, addNotification: function(notificationId, notificationParams, showBanner) {